﻿// -----------------------------------------------------------------------
// <copyright file="CheckerCell.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Exc2
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class CheckerCell
    {
        private char m_cellRow;
        private char m_cellColumn;
        private char m_pawnSymbol;

        public CheckerCell()
        {
            m_cellColumn = '0';
            m_cellRow = '0';
            m_pawnSymbol = ' ';
        }

        public CheckerCell(char i_cellColumn, char i_cellRow, char i_cellPawnSymbol)
        {
            m_cellColumn = i_cellColumn;
            m_cellRow = i_cellRow;
            m_pawnSymbol = i_cellPawnSymbol;
        }

        public char CellRow
        {
            get
            {
                return m_cellRow;
            }

            set
            {
                m_cellRow = value;
            }
        }

        public char CellColumn
        {
            get
            {
                return m_cellColumn;
            }

            set
            {
                m_cellColumn = value;
            }
        }

        public char PawnSymbol
        {
            get
            {
                return m_pawnSymbol;
            }

            set
            {
                m_pawnSymbol = value;
            }
        }

        public bool isSpecial()
        {
            return m_pawnSymbol == 'K' || m_pawnSymbol == 'Q';
        }

        public bool equals(CheckerCell i_cellToCompare)
        {
            return (m_cellColumn == i_cellToCompare.CellColumn) && (m_cellRow == i_cellToCompare.m_cellRow);
        }
     }
}
